const Koa = require('koa');
const app = new Koa();
app.use(async (ctx, next) => {
    ctx.body = "ok";
    console.log(`\nmethod name -${ctx.request.url}-\n`);
})
app.listen(3000, () => {
    console.log('server ok');
});